package com.tentcoo.zhaogonggu.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.tentcoo.zhaogonggu.common.CaseInfo;

/**
 * Created by Gunter on 2015/4/20.
 * @author 林桂填
 */
public class CaseRecerver extends BroadcastReceiver{
    public final static String SEND_CASE_ACTION = "com.tentcoo.zhaogonggu.receiver.action.sendcase";
    public final static String CASE_KEY = "com.tentcoo.zhaogonggu.receiver.casekey";
    private CaseInfo caseInfo;

    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals(SEND_CASE_ACTION)){
            caseInfo = (CaseInfo) intent.getSerializableExtra(CASE_KEY);
        }
    }
}
